package systemModels

type LoginBody struct {
	Username  string `json:"username" binding:"required"`       //用户名
	CompanyId int64  `json:"companyId,string" bson:"companyId"` //公司Id
	Password  string `json:"password" binding:"required"`       //密码
	Code      string `json:"code"`                              //验证码
	Uuid      string `json:"uuid"`                              //uuid
}

type UserInfo struct {
	UserId   int64  `json:"userId,string" db:"user_id"`
	UserName string `json:"userName" db:"user_name"`
	Avatar   string `json:"avatar" db:"avatar" `
}

type GetInfo struct {
	User        *UserInfo `json:"user"`
	Permissions []string  `json:"permissions"`
}
